<?php
$this->breadcrumbs = array(
    'Images' => array('index'),
    'Multiple Upload',
);
$this->menu = array(
    array('label' => 'List Images', 'url' => array('index')),
);
?>

<h1>Multiple Images Upload for User #<?php echo Yii::app()->session->get("user_id"); ?></h1>

<?php
$this->widget('bootstrap.widgets.TbFileUpload', array(
    'url' => $this->createUrl("image/multipleupload"),
    'model' => $model,
    'attribute' => 'img_url', // see the attribute?
    'multiple' => true,
    'options' => array(
        'maxFileSize' => 2000000,
        'acceptFileTypes' => 'js:/(\.|\/)(gif|jpe?g|png)$/i',
    ),
    'htmlOptions' => array('multiple' => 'multiple'),
));
?>
<div class="form-actions">
    <?php
    $this->widget('bootstrap.widgets.TbButton', array(
        'url' => array('image/adminupload'),
        'type' => 'primary',
        'label' => 'Quay lại',
    ));
    ?>
</div>